package cn.wmw.xyy.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wmw
 * @since 2023-01-29
 */
@TableName("t_message_banner")
public class MessageBanner extends Model<MessageBanner> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * ip地址
     */
    private String ip;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 拉黑原因
     */
    private String reason;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 手机号
     */
    private String mobile;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;
    @JsonProperty("TITLE")
    private String title;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MessageBanner{" +
        ", id=" + id +
        ", ip=" + ip +
        ", userId=" + userId +
        ", reason=" + reason +
        ", createTime=" + createTime +
        ", mobile=" + mobile +
        ", updateTime=" + updateTime +
        "}";
    }
}
